package com.taotao.cart.feign;


import com.taotao.common.dto.TbItem;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by zhang_xming on 2017/2/13.
 */
@FeignClient(name = "taotao-item")
public interface ItemFeignClient {
    /**
     * 通过Id查找实体
     * @param itemId
     * * @return
     */
    @RequestMapping(value = "/item1/{itemId}", method = RequestMethod.GET)
    public TbItem getItemById(@RequestParam("itemId") Long itemId);
}
